﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RCREEE.Library.Entities
{
    public class UserPermission
    {
        #region Private fields

        private int _permisionId;
        private int _userId;
        private int _countryId;
        private int _entityId;
        private bool _canAdd;
        private bool _canUpdate;
        private bool _canDelete;
        private TinyItem _country;

        #endregion

        #region Public properties

        public int UserId
        {
            get { return _userId; }
            set { _userId = value; }
        }

        public int CountryId
        {
            get { return _countryId; }
            set { _countryId = value; }
        }

        public int EntityId
        {
            get { return _entityId; }
            set { _entityId = value; }
        }

        public bool CanAdd
        {
            get { return _canAdd; }
            set { _canAdd = value; }
        }

        public bool CanUpdate
        {
            get { return _canUpdate; }
            set { _canUpdate = value; }
        }

        public bool CanDelete
        {
            get { return _canDelete; }
            set { _canDelete = value; }
        }

        public TinyItem Country
        {
            get { return _country; }
            set { _country = value; }
        }

        public int PermisionId
        {
            get { return _permisionId; }
            set { _permisionId = value; }
        }

        #endregion

        #region Constractor
        public UserPermission()
        {
        }
        #endregion
    }
}
